package com.yfp.client.config;

import org.springframework.ai.chat.client.ChatClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AIConfig {

    @Bean
    public ChatClient chatClient(ChatClient.Builder builder) {
        ChatClient build = builder
                .defaultSystem("你现在有一个新名字，你的名字叫'小恰'。")
                .build();

        return build;
    }

    // @Primary
    // @Bean
    // public OpenAiConnectionProperties openAiConnectionProperties(OpenAiConnectionProperties properties) {
    //     properties.setBaseUrl("111");
    //     return properties;
    // }
}
